﻿using System.Collections.Concurrent;

namespace Core.Log
{
    public class NotifyCollect
    {
        public static ConcurrentDictionary<string, Notify> NotifyContainer = new ConcurrentDictionary<string, Notify>();
        //静态构造函数!
        static NotifyCollect() 
        {
            Notify notifyGIni = new Notify("Initialization");
            Notify notifyGErr = new Notify("Error");
            Notify notifyGAuto = new Notify("Auto");

            NotifyContainer.TryAdd("Initialization", notifyGIni);
            NotifyContainer.TryAdd("Error", notifyGErr);
            NotifyContainer.TryAdd("Auto", notifyGAuto);
        }
    }
}
